package com.mingqijia.gassafety.authority.api.resp.config;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 行政区管理信息数据
 * @author Damon S.
 * @version v0.2
 * @description 参数配置管理信息数据
 * @date 2021-04-18 11:09
 */
@Data
@ApiModel(value = "行政区管理信息数据")
public class DivisionLiteRespDTO implements Serializable {
    @ApiModelProperty(value = "唯一ID")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "路径")
    private String pathCode;

    @JsonIgnore
    @ApiModelProperty(value = "级别")
    private Integer level;

    @JsonIgnore
    @ApiModelProperty(value = "上级")
    private String parentId;

    @ApiModelProperty(value = "下级")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DivisionLiteRespDTO> children;
}
